<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<script type="text/javascript">
	function goback() {
		history.go(-1);
	}
</script>
<div class="page-header">
	<h3 style="margin-top: auto">AADL代码信息</h3>
</div>
<div class="row-fluid">
	<div>
		<table class="table table-hover" style="width: 85%">
			<thead>
				<tr>
					<th style="width: 15%">属性</th>
					<th style="width: 85%">详细信息</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>项目名称</td>
					<td><c:out value="${item.name}" /></td>
				</tr>
				<tr>
					<td>AADL代码</td>
					<td><pre class="pre-scrollable" style="height: 1000px"><c:out value="${code}" /></pre></td>
				</tr>
				<tr>
					<td>操作</td>
					<td><div class="btn-group">
							<c:set var="muri" value="${fn:replace(item.model.getUri(),':', '/')}" />
							<Button class="btn"
											onclick="window.location.href='<%=request.getContextPath()%>/${muri}/aadl/download';"><i class="icon-download"></i>&nbsp;下载AADL代码</Button>
						<button class="btn"
			onclick="goback()"><i class="icon-arrow-left"></i>&nbsp;返回</button>
						</div></td>
				</tr>
			</tbody>
			<tfoot>
			</tfoot>
		</table>
	</div>
</div>